#include "linenumberarea.h"
#include "editor.h"

LineNumberArea::LineNumberArea(Editor *editor)
    : QWidget(editor)
    , _editor(editor)
{

}

void LineNumberArea::paintEvent(QPaintEvent *event)
{
    _editor->paintLineNumberArea(event);
}

void LineNumberArea::mousePressEvent(QMouseEvent* event)
{
    _editor->lineNumberMousePress(event);
}
